package com.itheima.service;

import com.itheima.pojo.Dept;

import java.util.List;

/**
 * 部门管理
 */
public interface DeptService {

    /**
     * List list.
     *
     * @return the list
     */
    List<Dept> list();

    /**
     * Delete by id.
     *
     * @param id the id
     */
    void deleteById(Integer id);

    /**
     * Save.
     *
     * @param dept the dept
     */
    void save(Dept dept);

    /**
     * Select dept by id dept.
     *
     * @param id the id
     * @return the dept
     */
    Dept selectDeptById(Integer id);

    /**
     * Update dept.
     *
     * @param dept the dept
     */
    void updateDept(Dept dept);
}
